package cn.tedu.csmall.server.web;

import org.omg.CORBA.PUBLIC_MEMBER;

/**
 * @author lixin
 * @Date 2022/9/11
 * 业务状态码
 */
public class ServiceCode {
    /**
     * 成功
     */
    public static final int OK = 20000;
    /**
     * 请求数据格式错误
     */
    public static final int ERR_BAD_REQUEST = 40000;




    /**
     * 错误：JWT数据错误，可能被恶意篡改
     */
    public static final int ERR_JWT_INVALID = 40001;
    /**
     * 错误：JWT过期
     */
    public static final int ERR_JWT_EXPIRED = 40300;

    /**
     * 错误:冲突，通常是因为出现了重复的数据
     */
    public static final int ERR_CONFLICT = 40900;

    /**
     * 插入数据失败
     */
    public static final int ERR_INSERT = 50200;
    /**
     *
     */
    public static final int ERR_UPDATE = 50300;
    /**
     * 删除失败
     */
    public static final int ERR_DELETE = 50400;

    /**
     * 未找到
     */
    public static final int ERR_NOT_FOUND = 50500;

    /**
     * 错误，未知异常
     */
    public static final int ERR_UNKNOWN = 59999;

}
